package com.tanhua.manager.utils;

import io.jsonwebtoken.*;

/**
 * @author liuyp
 * @date 2021/10/31
 */
public class JwtUtils {
    public static boolean isValidToken(String token, String secret) {
        try {
            Jws<Claims> jws = Jwts.parser().setSigningKey(secret).parseClaimsJws(token);
            return true;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }
}
